/*
 * IProcess.java
 * 
 * Copyright 2007 Kamen Petroff.
 * All Rights Reserved.
 * 
 * This software is the proprietary information of Kamen Petroff.
 * Use is subject to license terms.
 * 
 * Created on Mar 2, 2007 at 11:07:26 PM by Kamen Petroff
 */
package com.google.code.shell4eclipse.process;

import java.io.InputStream;

/**
 * 
 *
 * @author Kamen Petroff 
 * @since Mar 2, 2007
 */
public interface IProcess {
	
	interface IStreamListener {
		void onOutputAvailable(IStreamReader reader);
	}
	
	void setProcessListener(IProcessListener listener);
	void setOutputStreamListener(IStreamListener outListener);
	void setErrorStreamListener(IStreamListener errListener);
	InputStream getStdIn();
	
	void kill();
	void writeStdIn(byte[] buffer, int read);

}
